home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / locale / nsIFontPackageService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  109 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFontPackageService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFontPackageService_h__
  6. #define __gen_nsIFontPackageService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIFontPackageHandler; /* forward declaration */
  18.  
  19. // {6712FDD6-F978-11d4-A144-005004832142}
  20. #define NS_FONTPACKAGESERVICE_CID \
  21. { 0x6712fdd6, 0xf978, 0x11d4, { 0xa1, 0x44, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42 } }
  22. #define NS_FONTPACKAGESERVICE_CONTRACTID \
  23.   "@mozilla.org/intl/fontpackageservice;1"
  24.  
  25. /* starting interface:    nsIFontPackageService */
  26. #define NS_IFONTPACKAGESERVICE_IID_STR "6712fdd2-f978-11d4-a144-005004832142"
  27.  
  28. #define NS_IFONTPACKAGESERVICE_IID \
  29.   {0x6712fdd2, 0xf978, 0x11d4, \
  30.     { 0xa1, 0x44, 0x00, 0x50, 0x04, 0x83, 0x21, 0x42 }}
  31.  
  32. class NS_NO_VTABLE nsIFontPackageService : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFONTPACKAGESERVICE_IID)
  36.  
  37.   /* void SetHandler (in nsIFontPackageHandler aHandler); */
  38.   NS_IMETHOD SetHandler(nsIFontPackageHandler *aHandler) = 0;
  39.  
  40.   /* void FontPackageHandled (in boolean aSuccess, in boolean aRedrawPages, in string aFontPackID); */
  41.   NS_IMETHOD FontPackageHandled(PRBool aSuccess, PRBool aRedrawPages, const char *aFontPackID) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIFONTPACKAGESERVICE \
  47.   NS_IMETHOD SetHandler(nsIFontPackageHandler *aHandler); \
  48.   NS_IMETHOD FontPackageHandled(PRBool aSuccess, PRBool aRedrawPages, const char *aFontPackID); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIFONTPACKAGESERVICE(_to) \
  52.   NS_IMETHOD SetHandler(nsIFontPackageHandler *aHandler) { return _to SetHandler(aHandler); } \
  53.   NS_IMETHOD FontPackageHandled(PRBool aSuccess, PRBool aRedrawPages, const char *aFontPackID) { return _to FontPackageHandled(aSuccess, aRedrawPages, aFontPackID); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSIFONTPACKAGESERVICE(_to) \
  57.   NS_IMETHOD SetHandler(nsIFontPackageHandler *aHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHandler(aHandler); } \
  58.   NS_IMETHOD FontPackageHandled(PRBool aSuccess, PRBool aRedrawPages, const char *aFontPackID) { return !_to ? NS_ERROR_NULL_POINTER : _to->FontPackageHandled(aSuccess, aRedrawPages, aFontPackID); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsFontPackageService : public nsIFontPackageService
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSIFONTPACKAGESERVICE
  69.  
  70.   nsFontPackageService();
  71.  
  72. private:
  73.   ~nsFontPackageService();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsFontPackageService, nsIFontPackageService)
  81.  
  82. nsFontPackageService::nsFontPackageService()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsFontPackageService::~nsFontPackageService()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* void SetHandler (in nsIFontPackageHandler aHandler); */
  93. NS_IMETHODIMP nsFontPackageService::SetHandler(nsIFontPackageHandler *aHandler)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* void FontPackageHandled (in boolean aSuccess, in boolean aRedrawPages, in string aFontPackID); */
  99. NS_IMETHODIMP nsFontPackageService::FontPackageHandled(PRBool aSuccess, PRBool aRedrawPages, const char *aFontPackID)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* End of implementation class template. */
  105. #endif
  106.  
  107.  
  108. #endif /* __gen_nsIFontPackageService_h__ */
  109.